package com.montran.timer.task;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimerTask;

public class FutureTask extends TimerTask {
	

	private final static int fONE_DAY = 1;
	private final static int fFOUR_AM = 4;
	private final static int fZERO_MINUTES = 0;

	private static Date getTomorrowMorning4am(){
	    Calendar tomorrow = new GregorianCalendar();
	    tomorrow.add(Calendar.DATE, fONE_DAY);
	    Calendar result = new GregorianCalendar(
	      tomorrow.get(Calendar.YEAR),
	      tomorrow.get(Calendar.MONTH),
	      tomorrow.get(Calendar.DATE),
	      fFOUR_AM,
	      fZERO_MINUTES
	    );
	    return result.getTime();
	  }

	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}
}
